package com.ruoyi.cinema.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 卖品对象 goods
 *
 * @author HHAOYU
 * @date 2020-12-09
 */
@TableName("goods")
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @TableId(value = "id")
    private Long id;
    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;
    /**  */
    @Excel(name = "分类id")
    private Long cinemaId;
    /** 商品编号 */
    @Excel(name = "商品编号")
    private String goodsCode;
    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;
    /** 商品类型 */
    @Excel(name = "商品类型")
    private String goodsType;
    /** 商品标准价 */
    @Excel(name = "商品标准价")
    private Long goodsStandardPrice;
    /** 商品结算价 */
    @Excel(name = "商品结算价")
    private Long goodsSettlePrice;
    /** 商品库存数量 */
    @Excel(name = "商品库存数量")
    private Long goodsStorageCount;
    /** 商品图片地址 */
    @Excel(name = "商品图片地址")
    private String goodsPicUrl;
    /** 是否享受会员优惠 */
    @Excel(name = "是否享受会员优惠")
    private String memberFlag;
    /** 是否推介商品 */
    @Excel(name = "是否推介商品")
    private String recommendFlag;

    @TableField(exist=false)
    private List<ComboGroupInfo> comboGroupInfoList;

    @TableField(exist=false)
    private Long activityPrice;

    @TableField(exist=false)
    private String categoryName;
    @TableField(exist=false)
    private String cinemaName;
    @TableField(exist=false)
    private Long customerId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setCinemaId(Long cinemaId)
    {
        this.cinemaId = cinemaId;
    }

    public Long getCinemaId()
    {
        return cinemaId;
    }
    public void setGoodsCode(String goodsCode)
    {
        this.goodsCode = goodsCode;
    }

    public String getGoodsCode()
    {
        return goodsCode;
    }
    public void setGoodsName(String goodsName)
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName()
    {
        return goodsName;
    }
    public void setGoodsType(String goodsType)
    {
        this.goodsType = goodsType;
    }

    public String getGoodsType()
    {
        return goodsType;
    }
    public void setGoodsStandardPrice(Long goodsStandardPrice)
    {
        this.goodsStandardPrice = goodsStandardPrice;
    }

    public Long getGoodsStandardPrice()
    {
        return goodsStandardPrice;
    }
    public void setGoodsSettlePrice(Long goodsSettlePrice)
    {
        this.goodsSettlePrice = goodsSettlePrice;
    }

    public Long getGoodsSettlePrice()
    {
        return goodsSettlePrice;
    }
    public void setGoodsStorageCount(Long goodsStorageCount)
    {
        this.goodsStorageCount = goodsStorageCount;
    }

    public Long getGoodsStorageCount()
    {
        return goodsStorageCount;
    }
    public void setGoodsPicUrl(String goodsPicUrl)
    {
        this.goodsPicUrl = goodsPicUrl;
    }

    public String getGoodsPicUrl()
    {
        return goodsPicUrl;
    }
    public void setMemberFlag(String memberFlag)
    {
        this.memberFlag = memberFlag;
    }

    public String getMemberFlag()
    {
        return memberFlag;
    }
    public void setRecommendFlag(String recommendFlag)
    {
        this.recommendFlag = recommendFlag;
    }

    public String getRecommendFlag()
    {
        return recommendFlag;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCinemaName() {
        return cinemaName;
    }

    public void setCinemaName(String cinemaName) {
        this.cinemaName = cinemaName;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Long getActivityPrice() {
        return activityPrice;
    }

    public void setActivityPrice(Long activityPrice) {
        this.activityPrice = activityPrice;
    }

    public List<ComboGroupInfo> getComboGroupInfoList() {
        return comboGroupInfoList;
    }

    public void setComboGroupInfoList(List<ComboGroupInfo> comboGroupInfoList) {
        this.comboGroupInfoList = comboGroupInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("categoryId", getCategoryId())
            .append("cinemaId", getCinemaId())
            .append("goodsCode", getGoodsCode())
            .append("goodsName", getGoodsName())
            .append("goodsType", getGoodsType())
            .append("goodsStandardPrice", getGoodsStandardPrice())
            .append("goodsSettlePrice", getGoodsSettlePrice())
            .append("goodsStorageCount", getGoodsStorageCount())
            .append("goodsPicUrl", getGoodsPicUrl())
            .append("memberFlag", getMemberFlag())
            .append("recommendFlag", getRecommendFlag())
            .toString();
    }
}
